
/** \brief wayixia style css
 *
 */

body {
  padding:0; 
  margin:0;
  -moz-user-select:none;
  -webkit-user-select: none;
  font-family: 'Segoe UI', Arial, 'Microsoft Yahei', Simsun, sans-serif; 
}

/**
 toolbar button css style
 */

.wayixia-toolbar-button {
  background: #FFF url(images/canvas-toolbar.png) left top no-repeat;
  height: 41px;
  width:45px;
  border: 0;
  outline: 0;
  position: relative;
}

.wayixia-toolbar-button:hover {
  background-color: #FFDD00;
}

.wayixia-toolbar-button .split 
{
  border-width: 0;
  border-right: 1px solid #ddd;
  width: 0px;
  position: absolute;
  right:0;
  top: 8px;
  height: 28px;
}

.wayixia-toolbar-button.checked {
  background-color: #CCC;
}

.wayixia-toolbar-button.zoom {
  background-position:  -270px top;
}

.wayixia-toolbar-button.zoom:hover {
  background-color: transparent;
}

.wayixia-toolbar-button.download {
  background-position:  -225px top;
}

.wayixia-toolbar-button.tocloud {
  background-position:  -360px -45px;
}

.wayixia-toolbar-button.restore {
  background-position:  -180px top;
}

.wayixia-toolbar-button.text {
  background-position:  0px top;
}

.wayixia-toolbar-button.arrow {
  background-position:  -45px top;
}

.wayixia-toolbar-button.rect {
  background-position:  -90px top;
}

.wayixia-toolbar-button.eclipse{
  background-position:  -135px top;
}


.wayixia-toolbar-button.line {
  background-position:  -315px top;
}

.wayixia-toolbar-button.brush {
  background-position:  -360px top;
}

.wayixia-toolbar-button.eraser {
  background-position:  -405px top;
}

/*
.wayixia-toolbar-button.save {
  background-image: none;
  background-color: transparent;
  position: relative;
  background: transparent url(images/dropdown.png) right 16px no-repeat;
}
*/

.wayixia-toolbar-button.color {
  background-image: none;
  background-color: transparent;
  position: relative;
  background: transparent url(images/dropdown.png) right 16px no-repeat;
}


.wayixia-toolbar-button.size {
  position: relative;
  padding: 0;
  line-height: 31px;
  background: transparent url(images/dropdown.png) right 16px no-repeat;
  color: #515151;
}

/** display toolbar button */
.wayixia-toolbar-button.block {
  background-position: left -45px;
}

.wayixia-toolbar-button.selectall {
  background-position: -45px -45px;
}

.wayixia-toolbar-button.selectall.checked {
  background-position: -90px -45px;
}

.eraser-cur {
  cursor: url(images/eraser.cur), default;
}

.wayixia-toolbar-button.showblock {
  background-position: -180px -45px;
}

.wayixia-toolbar-button.showblock.checked {
  background-position: -135px -45px;
}

.wayixia-toolbar-button.filter {
  background-position: -225px -45px;
  background-color: transparent;
}

.wayixia-toolbar-button.undo {
  background-position: -270px -45px;
}

.wayixia-toolbar-button.redo {
  background-position: -315px -45px;
}
/** \brief layout of wayixia panel
 *
 */
#wayixia-title-bar {
  position: fixed; 
  left: 0px; 
  top: 0px; 
  right: 0px; 
  height: 38px; 
  line-height: 38px; 
  color: #CCC; 
  text-indent: 10px; 
  cursor: default; 
  text-align: left;
  text-shadow: 1px 1px #000; 
  font-size: 18px; 
  background: rgb(45, 45, 45);
}

#wayixia-title-bar:active {
  outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.325);box-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.325);
}

/* wayixia user menu */

#wayixia-user-menu {
  position: absolute;
  right: 0px;
  top: 0;
  bottom:0;
  width: 300px;
  text-align: right;
}

#wayixia-user-menu button {
  outline:0;
  border: 0px;
  height: 38px;
  line-height: 42px;
  margin-right: 3px;
  background-color: transparent;
  color: #999;
  font-size: 16px;
}


#wayixia-user-menu button:hover {
  color: #FFF;
  cursor: hand;
}

button#wayixia-close {
  display: none;
}

#wayixia-help {
  visibility: visible;
}

#wayixia-bugs
{
  display: none;
  position: relative;
  background: transparent url(images/bug.tips.png) left 10px no-repeat;
  width: 28px;
  opacity: 0.9;
}

button#wayixia-bugs {
  margin-right: 10px;
}

#wayixia-bugs:hover
{
  #background-color: #FF0;
  opacity: 1;
}

#wayixia-bugs-num {
  border: 1px solid white;
  width: 13px;
  background-color: #f3bf21;
  border-radius: 4px;
  color: #fff;
  font: bold 10px Arial;
  left: 13px;
  height:13px;
  line-height: 15px;
  padding: 0 1px;
  position: absolute;
  text-align: center;
  top: 5px;
  visibility: hidden;
}



/* wayixia container */

#wayixia-container, #wayixia-container * {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  -ms-box-sizing: content-box;
  box-sizing: content-box;
}

#wayixia-container {
  font-family: arial, 'helvetica neue', sans-serif;
  position: absolute;
  top: 80;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFF;
  opacity: 1;
  hasLayout: -1;
  overflow:auto;
  padding-bottom: 15px;
}

/* wayixia toolbar */
#wayixia-toolbar, #wayixia-toolbar-screenshot {
  position:fixed;
  top: 38px;
  left: 0px;
  right: 0px;
  height: 41px;
  border-bottom: 1px solid #ebebeb;
  background-color: #FCFCFC;
}

#wayixia-toolbar a, #wayixia-toolbar-screenshot a {
  font-size: 14px;
  color: #000;
  text-decoration: none;
  margin-left: 5px;
  display:inline-block;
  position: relative;
}


#wayixia-view
{
  float: right;
  margin: 0 10px 0 0;
  text-decoration: underline;
  height:42px;
}

#wayixia-screenshot-image {
  position: absolute;
}

/** user define wndx style */
#wayixia-progress {
  visibility: hidden;
  z-index: 90000;
  margin: 0 auto;
  background: #FFF;
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  text-align: center;
}

#wayixia-progress h4 {
  line-height: 50px;
  font-size: 20px;
  font-weight: normal;
  margin: 0 auto;
  color: #999;
}

#wayixia-progress #wayixia-progress-bar {
  margin: 0 auto;
  width: 380px;
  height: 13px;
  border: 1px solid #CCC;
}

#wayixia-progress #wayixia-progress-bar #wayixia-progress-bar-thumb {
  background: #428abc url(images/capturing.gif) repeat-x left top;
  width: 130px;
  height: 100%;
}

.q-window.q-attr-progress  {
  border: 0px outset #CCC;
  box-shadow:0 1px 15px rgba(0,0,0,.2);
  -moz-box-shadow:0 1px 15px rgba(0,0,0,.2);
  -webkit-box-shadow:0 1px 15px rgba(0,0,0,.2)
}

/* simple os window */
.q-window {
  background-color: transparent;
  border:1px solid #AAA;
  /*
  border: 7px solid rgba(17,17,17,0.5);
  border-top-width: 7px; */
  border-radius: 3px;
  border-radius: 3px;
}

.q-window .q-icon {
  background-image: url(images/icon.png);
  left: 0;
}

.q-window .q-title {
  background-color: #74a9c5; /*rgba(255, 153,0,1.0);*/
}

.q-window .q-window-client,
.q-window .q-bottom-bar
{
  background: #FFF;
}

.q-window .q-bottom-bar
{
  height: 38px;
  line-height: 38px;
}

.q-window.q-attr-with-bottom .q-window-client { bottom: 39px; }

.q-window .q-title-content {
  font-size:16px;
  line-height: 28px;
  left: 21px;
}



.q-window .sysbtn,
.q-window .syscancelbtn
{
  /*background-color: #57af00;*/
  background-color: #bdccd4;
  border: 0px solid #999;
  outline: 0;
  border-radius: 3px;
  border-radius: 3px;
  height: 30px;
  margin-top:4px;
  color: #000;
}

.q-window .syscancelbtn {
  background-color: #EEE;
  color: #000;
}


/* start menu */

.q-contextmenu.wayixia-menu {
  border-width: 0;
  box-shadow:0 1px 15px rgba(0,0,0,.2);
  -moz-box-shadow:0 1px 15px rgba(0,0,0,.2);
  -webkit-box-shadow:0 1px 15px rgba(0,0,0,.2);
  min-width: 170px;
  background-image: none; 
  background-repeat: repeat-y;
  background-position: left top;
  background-color: #FFF;
  z-index: 910000;
}

.q-contextmenu.wayixia-menu .q-item {
  height: 30px;
  line-height: 30px;
}

.q-contextmenu.wayixia-menu .q-item .q-item-icon {
  width: 15px;
}

.q-contextmenu.wayixia-menu .q-item.q-seperator,
.q-contextmenu.wayixia-menu .q-item.q-seperator:hover
{
  height: 15px;
  background-color: none;
}

.q-contextmenu.wayixia-menu .q-item-seperator .q-line {
  left: 5px;
  background-color: #CCC;
}

.q-contextmenu.wayixia-menu .q-item .q-item-title {
  line-height: 30px;
  font-size: 14px;
}

.q-contextmenu.wayixia-menu .q-item:hover, 
.q-contextmenu.wayixia-menu .q-item.q-active 
{
  background-color: #;
}

.q-select.wayixia-menu {
  height: 42px;
  min-width: 50px;
  font-size: 15px;
  font-family: 'Segoe UI', Arial, 'Microsoft Yahei', Simsun, sans-serif;
  text-indent: 15px;
  background: transparent;
  border-color: transparent;
}

.q-select.wayixia-menu {
  background: transparent url(images/view-type.png) left center no-repeat;
}

.q-select.wayixia-menu.checked {
  background: transparent url(images/view-type.png) left center no-repeat;
}

/* images-box style */
.q-images-box.size_1 .q-box-item {
  width: 100px;
  height: 100px;
}
.q-images-box.size_2 .q-box-item {
  width: 200px;
  height: 200px;
}

.q-images-box.size_3 .q-box-item {
  width: 500px;
  height: 300px;
}

.q-images-box .q-box-item {
  borders: transparent 5px solid;
  box-shadow: 0 1px 9px rgba(0,0,0,.1);
-moz-box-shadow: 0 1px 9px rgba(0,0,0,.1);
-webkit-box-shadow: 0 1px 9px rgba(0,0,0,.1);
 z-index: auto;
}

.q-images-box .q-box-item:hover,
.q-images-box .q-box-item.mouseselected
{
  borders: #FFF 5px solid;
}


.q-images-box .q-box-item .tocloud, 
.q-images-box .q-box-item .save,
.q-images-box .q-box-item .preview,
.q-images-box .q-box-item .edit 
{
  background-color: transparent;
  background-image: url(images/canvas-toolbar.png);
  background-repeat: no-repeat;
  border-width: 0;
  outline: 0;
  margin-right:2px;
}



.q-images-box .q-box-item .tocloud { background-position: -60px -160px; }
.q-images-box .q-box-item .tocloud:hover {  background-position: -60px -180px; background-color: #000; }
.q-images-box .q-box-item .save { background-position: -20px -160px; }
.q-images-box .q-box-item .save:hover { background-position: -20px -180px; background-color: #000; }
.q-images-box .q-box-item .preview { background-position: left -160px; }
.q-images-box .q-box-item .preview:hover { background-position: left -180px;background-color: #000; }
.q-images-box .q-box-item .edit { background-position: -40px -160px; }
.q-images-box .q-box-item .edit:hover { background-position: -40px -180px; background-color: #000; }

.q-images-box .q-box-item .split {
  border-right: 1px solid #999;
  margin-right: 2px;
}

.q-images-box .q-box-item .q-box-info {
  padding: 5px 10px;  
}


.wayixia-box .wing-box {
  display: none;
  position:absolute;
  left:10px;
  top:70px;
  right:10px;
  bottom:0px; 
  height:50px;
  border-radius:5px;
  border:1px solid #F1F1F1;
  line-height:50px;
  font-size:14px;
  font-family:arial;
  text-align:left;
}

.q-images-box .wing-box-ing {
  display: block ;
  text-indent: 53px;
  background:#FFF url(images/wing32.gif) 10px center no-repeat;
}

.q-images-box .wing-box-ok {
  display:block ;
  text-indent: 45px;
  background:#FFF url(images/sprite_ok.png) 20px center no-repeat;
}

.q-images-box .wing-box-error {
  display: block;
  text-indent: 45px;
  background:#FFF url(images/sprite_error.png) 20px center no-repeat;
}

.q-images-box .wing-box-warn {
  display: block;
  text-indent: 45px;
  background:#FFF url(images/sprite_warn.png) 20px center no-repeat;
}

.q-images-box .q-box-item .wing-box {
  display: none;
  position:absolute;
  left:10px;
  top:70px;
  right:10px;
  bottom:0px; 
  height:50px;
  border-radius:5px;
  border:1px solid #F1F1F1;
  line-height:50px;
  font-size:14px;
  font-family:arial;
  text-align:left;
}

.q-images-box .layer-mask {
  display: none;
  position:absolute;
  left:10px;
  top:70px;
  right:10px;
  bottom:0px; 
  height:50px;
  border-radius:5px;
  border:1px solid #F1F1F1;
  line-height:50px;
  font-size:14px;
  font-family:arial;
  text-align:left;
}

.q-images-box .layer-mask.wing-box-ing {
  display: block ;
  text-indent: 53px;
  background:#FFF url(images/wing32.gif) 10px center no-repeat;
}

.q-images-box .layer-mask.wing-box-ok {
  display:block ;
  text-indent: 45px;
  background:#FFF url(images/sprite_ok.png) 20px center no-repeat;
}

.q-images-box .layer-mask.wing-box-error {
  display: block;
  text-indent: 45px;
  background:#FFF url(images/sprite_error.png) 20px center no-repeat;
}

.q-images-box .layer-mask.wing-box-warn {
  display: block;
  text-indent: 45px;
  background:#FFF url(images/sprite_warn.png) 20px center no-repeat;
}

.q-window-mask.q-top-mask {
  filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5;
}
